'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadFunction( _ ByVal dataVariable As UADataVariable, _ ByVal valueType As Type, _ ByVal readFunction As Func(Of UAAttributeData) _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim valueType As Type Dim readFunction As Func(Of UAAttributeData) Dim value As UADataVariable value = UADataVariableExtension.ReadFunction(dataVariable, valueType, readFunction)
[Extension()] [NotNull()] public static UADataVariable ReadFunction( UADataVariable dataVariable, Type valueType, Func<UAAttributeData> readFunction )
[Extension()] [NotNull()] public: static UADataVariable^ ReadFunction( UADataVariable^ dataVariable, Type^ valueType, Func<UAAttributeData^>^ readFunction )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - valueType
- The type of the data variable, expressed as .NET System.Type.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - readFunction
- The read function, i.e. the function that performs the read operation and returns the attribute data that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Return Value
This method never returns null
(Nothing
in Visual Basic).